project(kimagesorter)
 
find_package(KDE4 REQUIRED)
include_directories(${KDE4_INCLUDES})
 
set(sorter_SRCS 
    main.cpp
    main_window.cpp
    picture_widget.cpp
    image_loader.cpp
    image_sorter.cpp
    settings_dialog.cpp
)

kde4_add_ui_files( sorter_SRCS sortsettings.ui )
 
kde4_add_executable(kimagesorter ${sorter_SRCS})
 
target_link_libraries(kimagesorter ${KDE4_KDEUI_LIBS} 
                                ${KDE4_KIO_LIBS})
 
install(TARGETS kimagesorter DESTINATION ${BIN_INSTALL_DIR})
install(FILES kimagesorterui.rc 
        DESTINATION ${DATA_INSTALL_DIR}/kimagesorter)